package holdobject;

import java.util.Arrays;
import java.util.List;

public class Demo1 {
    public static void main(String[] args) {
        int[] data = {1,2,3,4,5};
        List list = Arrays.asList(data);
        System.out.println("列表中的元素数量是：" + list.size());
        int[] data3 = {1,2,3,4,5};
        List list3 = Arrays.asList(data3);
        System.out.println("元素类型：" + list3.get(0).getClass());
        System.out.println("前后是否相等："+data3.equals(list.get(0)));
        Integer[] data1 = {1,2,3,4,5};
        List list1 = Arrays.asList(data1);
        System.out.println("列表中的元素数量是：" + list1.size());
    }
}
